/*
 * @Author: wangding
 * @Date: 2020-10-22 09:53:27
 * @LastEditTime: 2021-02-18 09:48:00
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \solaxcloud\src\store\module\sys\index.js
 */
const state = {
    visibleAdd: false, //公用--新增
    visibleEdit: false, //公用--编辑
    visibleAdd2: false, //公用--新增2
    visibleEdit2: false, //公用--编辑2
    visibleInfo: false, //公用--查看
    visibleBind: false, //公用--绑定
    visibleBind2: false, //公用--绑定2
    visibleShow: false, //公用--显示
    visibleShow2: false, //公用--显示2
    visibleBaiduMap: false, //公用--百度map
    visibleGoogleMap: false, //公用--谷歌map
    visibleBaiduMapSite: false, //公用--百度map--电站标记
    visibleGoogleMapSite: false, //公用--谷歌map--电站标记
    visibleSummer: false, //公用--夏令时
    rightVisible: false,
    rightVisibleEdit: false,
    roleVisible: false,
    roleVisibleEdit: false,
    roleVisibleInfo: false,
    menuVisible: false,
    menuVisibleEdit: false,
    dictionaryVisible: false,
    dictionaryVisibleEdit: false,
    sysStyleVisible: false,
    sysStyleVisibleEdit: false,
    apiVisible: false,
    apiVisibleEdit: false,
    allMenusList: [],
    newVisible: false,
    newVisibleEdit: false,
    newVisibleFlow: false,
    newVisibleRemark: false,
    newVisibleGroup: false,
    newVisiblePvModules: false,
    deviceDataList: {},
    loginNotify: ''
}
const mutations = {
    setLoginNotify(state, val) { //新增
        state.loginNotify = val
    },
    setDeviceDataList(state, val) { //新增
        state.deviceDataList = val
    },
    setNewVisible(state, val) { //新增
        state.newVisible = val
    },
    setNewVisibleEdit(state, val) { //编辑
        state.newVisibleEdit = val
    },
    setNewVisibleRemark(state, val) { //编辑
        state.newVisibleRemark = val
    },
    setNewVisibleGroup(state, val) { //编辑
        state.newVisibleGroup = val
    },
    setNewVisiblePvModules(state, val) { //编辑
        state.newVisiblePvModules = val
    },
    setNewVisibleFlow(state, val) { //编辑
        state.newVisibleFlow = val
    },
    setApiVisible(state, val) { //新增
        state.apiVisible = val
    },
    setApiVisibleEdit(state, val) { //编辑
        state.apiVisibleEdit = val
    },
    setVisibleAdd(state, val) { //公用--新增
        state.visibleAdd = val
    },
    setVisibleEdit(state, val) { //公用--编辑
        state.visibleEdit = val
    },
    setVisibleAdd2(state, val) { //公用--新增2
        state.visibleAdd2 = val
    },
    setVisibleEdit2(state, val) { //公用--编辑2
        state.visibleEdit2 = val
    },
    setVisibleInfo(state, val) { //公用--查看
        state.visibleInfo = val
    },
    setVisibleBind(state, val) { //公用--绑定
        state.visibleBind = val
    },
    setVisibleBind2(state, val) { //公用--绑定2
        state.visibleBind2 = val
    },
    setVisibleShow(state, val) { //公用--显示1
        state.visibleShow = val
    },
    setVisibleShow2(state, val) { //公用--显示2
        state.visibleShow2 = val
    },
    setVisibleBaiduMap(state, val) { //公用--百度地图
        state.visibleBaiduMap = val
    },
    setVisibleGoogleMap(state, val) { //公用--谷歌地图
        state.visibleGoogleMap = val
    },
    setVisibleBaiduMapSite(state, val) { //公用--百度地图--标记
        state.visibleBaiduMapSite = val
    },
    setVisibleGoogleMapSite(state, val) { //公用--谷歌地图--标记
        state.visibleGoogleMapSite = val
    },
    setVisibleSummer(state, val) { //夏令时
        state.visibleSummer = val
    },
    setRightVisible(state, val) {
        state.rightVisible = val
    },
    setRightVisibleEdit(state, val) {
        state.rightVisibleEdit = val
    },
    setRoleVisible(state, val) {
        state.roleVisible = val
    },
    setRoleVisibleEdit(state, val) {
        state.roleVisibleEdit = val
    },
    setRoleVisibleInfo(state, val) {
        state.roleVisibleInfo = val
    },
    setAllMenusList(state, val) {
        state.allMenusList = val
    },
    setMenuVisible(state, val) {
        state.menuVisible = val
    },
    setMenuVisibleEdit(state, val) {
        state.menuVisibleEdit = val
    },
    setDictionaryVisible(state, val) {
        state.dictionaryVisible = val
    },
    setDictionaryVisibleEdit(state, val) {
        state.dictionaryVisibleEdit = val
    },
    setSysStyleVisible(state, val) {
        state.sysStyleVisible = val
    },
    setSysStyleVisibleEdit(state, val) {
        state.sysStyleVisibleEdit = val
    },
}

export default {
    state,
    mutations
}